﻿using System;

namespace YJKWndrStatisticsExcel.AreaTable.YJKExcelFormTool
{
	public class TableSourceInfo
	{
		public string Name
		{
			get
			{
				return this.m_Name;
			}
			set
			{
				this.m_Name = value;
			}
		}

		public int SheetIndex
		{
			get
			{
				return this.m_SheetIndex;
			}
			set
			{
				this.m_SheetIndex = value;
			}
		}

		public int BadyStartRowNumber
		{
			get
			{
				return this.m_BadyStartRowNumber;
			}
			set
			{
				this.m_BadyStartRowNumber = value;
			}
		}

		public int BadyEndRowNumber
		{
			get
			{
				return this.m_BadyEndRowNumber;
			}
			set
			{
				this.m_BadyEndRowNumber = value;
			}
		}

		public TableSourceInfo()
		{
		}

		public TableSourceInfo(TableSourceInfo info)
		{
			this.m_Name = info.m_Name;
			this.m_SheetIndex = info.m_SheetIndex;
			this.m_BadyStartRowNumber = info.m_BadyStartRowNumber;
			this.m_BadyEndRowNumber = info.m_BadyEndRowNumber;
		}

		public TableSourceInfo(string name, int sheetIndex, int badyStartRowNumber, int badyEndRowNumber)
		{
			this.m_Name = name;
			this.m_SheetIndex = sheetIndex;
			this.m_BadyStartRowNumber = badyStartRowNumber;
			this.m_BadyEndRowNumber = badyEndRowNumber;
		}

		public bool IsNull()
		{
			return this.m_Name.CompareTo("") == 0;
		}

		private string m_Name = "";

		private int m_SheetIndex;

		private int m_BadyStartRowNumber;

		private int m_BadyEndRowNumber = 10;
	}
}
